
n=eval(input())
sum=0
up=2
down=1
for i in range(0, n):
    sum+=up/down
    tmp=up
    up+=down
    down=tmp
print("%.2f"%sum)